package com.sparrow.source;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;

@MapperScan({"com.sparrow.source.persistense.mapper"})
@SpringBootApplication(scanBasePackages = "com.sparrow.source")
public class IASAccessApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(IASAccessApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
        // 防止spring容器退出
        try {
            CountDownLatch latch = new CountDownLatch(1);
            latch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
